package com.itboye.allshengmedical.sci.packet.req;

import com.itboye.allshengmedical.sci.HexHelper;

public class StopCtrlTempReqPacket extends BaseReqPacket {

	public StopCtrlTempReqPacket() {
		this.setStart(new byte[] { (byte) 0x5A, (byte) 0xA5 });

		this.setLen((byte) 0x04);
		this.setContent(new byte[] { (byte) 0x03, (byte) 0x00, (byte) 0x00,
				(byte) 0x00 });

		this.calCheckBit();

		this.setEnd(new byte[] { (byte) 0x3E, (byte) 0xE3 });
	}

	public void stopCtrlMod1() {
//		byte ctrlMod = this.getContent(1);
//		this.setContent(1, (byte) (ctrlMod));
		this.setContent(1, (byte) (0x01));
	}

	public void stopCtrlMod2() {
//		byte ctrlMod = this.getContent(2);
//		this.setContent(1, (byte) (ctrlMod));
		this.setContent(2, (byte) (0x01));
	}

	public void stopCtrlMod3() {
//		byte ctrlMod = this.getContent(3);
//		this.setContent(1, (byte) (ctrlMod));
		this.setContent(3, (byte) (0x01));
	}
}
